package com.fh.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fh.shop.Product;
import org.apache.ibatis.annotations.Param;


public interface IProductMapper extends BaseMapper<Product> {

    int updateStock(@Param("id") Long productId, @Param("count") Long count);

    void updateSales(@Param("id") Long productId,@Param("count") Long count);
}
